package com.flow.asyncflow.core.annotation;

import com.flow.asyncflow.core.enums.NodeTypeEnum;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;

@Target({TYPE, METHOD, FIELD, CONSTRUCTOR})
@Retention(RetentionPolicy.RUNTIME)
public @interface NodeInfo {
    //节点名称
    String name();

    NodeTypeEnum nodeType() default NodeTypeEnum.OldSpecialNode;

    boolean isBusinessLog() default false;
}
